package com.it.you.base.string;

import cn.hutool.core.util.StrUtil;

/**
 * 测试StrUtil.format(CharSequence template, Object... params)方法
 */
public class StringTest1 {
    public static void main(String[] args) {
        String str = "105979" + "-" + "123456789";
        String you = getStr(str);
        System.out.println(you);
        String a = "1";
        Integer b =1;
        System.out.println(a.equals(b.toString()));
    }

    private static final String COMMIT_ORDER_TEMPLATE = "jzzcCommitOrder:{}";

    public static String getStr(String str) {
        String redisKey = StrUtil.format(COMMIT_ORDER_TEMPLATE, str + "-" + 1);
//        String redisKey = StrUtil.format(COMMIT_ORDER_TEMPLATE, 2, "-", 1);
        return redisKey;
    }
}
